home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 138
/
Volume 138 Aug 19 2011 - Damaged.iso
/
Games
/
shadez.swf
/
scripts
/
Local
/
Draw
/
CScreen_Main.as
< prev
next >
Wrap
Text File
|
2011-08-19
|
3KB
|
108 lines
package Local.Draw
{
import Local.External.CURL;
import flash.display.MovieClip;
import flash.events.Event;
public class CScreen_Main extends CScreen
{
public var mcButtonCredits:MovieClip;
public var mcBackground:MovieClip;
public var mcLogo:MovieClip;
public var mcMoreGames:MovieClip;
public var mcButtonGameGuide:MovieClip;
public var mcSize:MovieClip;
public var mcButtonTrailer:MovieClip;
private var mCreditsWindow:CWindow_Credits;
public var mcButtonPlay:MovieClip;
public function CScreen_Main()
{
if(true)
{
super();
if(true)
{
AddButton("play",new CScreenButton(mcButtonPlay,Button_Default)).addEventListener(CScreenButton.MOUSECLICK,e_PLAY);
if(true)
{
AddButton("gameguide",new CScreenButton(mcButtonGameGuide,Button_Default)).addEventListener(CScreenButton.MOUSECLICK,e_GAMEGUIDE);
if(true)
{
AddButton("trailer",new CScreenButton(mcButtonTrailer,Button_Default)).addEventListener(CScreenButton.MOUSECLICK,e_TRAILER);
}
AddButton("credits",new CScreenButton(mcButtonCredits,Button_Default)).addEventListener(CScreenButton.MOUSECLICK,e_CREDITS);
}
AddLogoButton();
}
AddMoreGamesButton("Main");
}
}
private function e_WINDOW_DISPOSING(param1:Event = null) : void
{
mCreditsWindow = null;
}
private function e_TRAILER(param1:Event = null) : void
{
CURL.Trailer();
}
override public function Process() : void
{
if(true)
{
super.Process();
if(true)
{
§§push(mCreditsWindow);
if(true)
{
§§goto(addr21);
}
§§pop().Update();
§§goto(addr21);
}
§§goto(addr19);
}
addr21:
if(§§pop())
{
addr19:
§§push(mCreditsWindow);
}
}
private function e_CREDITS(param1:Event = null) : void
{
var _loc2_:CScreenButton = null;
_loc2_ = CScreenButton(param1.currentTarget);
addChild(mCreditsWindow = new CWindow_Credits(stage));
mCreditsWindow.addEventListener(CWindow.DISPOSING,e_WINDOW_DISPOSING);
}
private function e_PLAY(param1:Event = null) : void
{
var _loc2_:CScreenButton = null;
_loc2_ = CScreenButton(param1.currentTarget);
mParent.GetScreen("selectlevel").Activate();
}
private function e_GAMEGUIDE(param1:Event = null) : void
{
CURL.GameGuide();
}
}
}